package com.yh.yhojcodesandbox.security;

import java.security.Permission;

/**
 * 禁用所有权限的安全管理器
 * @author Yh
 */
public class DenySecurityManager extends SecurityManager{

    @Override
    public void checkPermission(Permission perm) {
        throw new SecurityException("权限异常");
    }
}
